<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<%@ taglib uri="/WEB-INF/hexacta.tld" prefix="hexacta"%>

<head>
<sx:head cache="true" />
<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css"
	type="text/css" />
</head>

<s:include value="errorsSection.jsp"></s:include>

<s:form cssClass="formClass">
	<s:if
		test="%{(selectedClientForEdit != null)&&(selectedClientForEdit != '')}">
		<h2 style="position: relative; top: -10px;">Edit client</h2>
	</s:if>
	<s:else>
		<h2 style="position: relative; top: -10px;">Create new Client</h2>
	</s:else>
	<s:hidden name="selectedClientForEdit" id="selectedClientForEdit" />
	<sx:autocompleter searchType="startword" showDownArrow="false"
		autoComplete="false" name="selectedClientName" label="Client Name" />

	<sx:autocompleter list="locationList" label="Client Location"
		showDownArrow="false" searchType="startword" name="selectedLocation"
		forceValidOption="false" listKey="id" keyName="selectedLocationId"
		name="selectedLocationName" listValue="name"/>

	<sx:autocompleter list="employeeList" listValue="person.name"
		searchType="startword" listKey="id" showDownArrow="false"
		keyName="selectedEmployeeId" name="selectedEmployeeName"
		label="Manager / Partner in Charge" />

	<s:checkbox name="selectedInternal" label="Internal" />

	<s:submit action="ClientAction_saveClient" key="Ok" cssClass="btn"
		id="okbtn" cssStyle="position:relative; left:-175px;" />
		
	<s:submit key="Cancel" cssClass="btn" id="addbtn"
		action="ClientAction_filterClients" cssStyle="position:relative; left:-80px; top: -26px;"/>
</s:form>
